# __author: iamironman
from rest_framework.serializers import ModelSerializer
from .models import BannerInfo
from .models import NavInfo


class BannerInfoSerializer(ModelSerializer):
    class Meta:
        model = BannerInfo
        fields = ('image', 'link')


class NavInfoSerializer(ModelSerializer):
    class Meta:
        model = NavInfo
        fields = ('name', 'link')
